package com.qys.livesMall.quartz.task.shop;

import com.qys.livesMall.shop.service.ShopOrderSettlementService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @menu OrderSettlementTask
 * @date 2023/07/12 11:46
 */
@Slf4j
@Component("CancelOrderTask")
public class CancelOrderTask {

    @Autowired
    private ShopOrderSettlementService shopOrderSettlementService;

    public void exc(){
        log.info("订单缴纳货款超时处理....");
        shopOrderSettlementService.settlement();
        log.info("结算任务结束！");

    }
}

